#import <Foundation/Foundation.h>

/**
 * NSArray foundation class extended with a CustomSort category.
 *
 * The NSArray foundation class is extended to support sorting an
 * array based on the context of another array.
 *
 * @author      James Lin
 * @version     0.6.2
 * @since       0.6.2
 * @see         NSArray
 */
@interface NSArray (CustomSort)

/**
 * Sort the array using the context of another array.
 *
 * @param array  the other array of which to use as the context
 * @return       sorted array using the context of the other array
 */
- (NSArray*)sortedArrayUsingOtherArray:(NSArray*)array;

@end